def run(params:list[str]):
    from ApiBase import apiBase


    try:    
    #    apiBase.save_log("生成中","生成代码")
        data=apiBase.argv_json(1,'[{"code":"1+1","name":"张三","age":30},{"code":"3+4","name":"李四","age":41}]')
        sys_prompt="You are an expert in generating data"
        usr_prompt=f'''#examples
    {data}
    # IMPORTANT
    Based on the examples of the JSON object above, it is necessary to generate a new JSON object according to the following requirements:
    -The new JSON fields must be the same as the fields in the example;
    -If the fields are different, please regenerate them;
    -Just generate a record, don't generate an array;
    # Output
    ```output```
    '''
        print(apiBase.llm_chat(sys_prompt,usr_prompt))
    except Exception as e:
        print(f"llmchat调用错误:{e}")
    #    apiBase.save_log("生成错误",f"{e}")
    finally:
        apiBase.close()